Skip to content

Conversation

clouedoc
Copy link

@clouedoc clouedoc commented Oct 4, 2023

Starting in Go 1.17, installing executables with go get is deprecated. go install may be used instead.

In Go 1.18, go get will no longer build packages; it will only be used to add, update, or remove dependencies in go.mod. Specifically, go get will always act as if the -d flag were enabled.

More information: https://go.dev/doc/go-get-install-deprecation

> Starting in Go 1.17, installing executables with go get is deprecated. go install may be used instead.
>
> In Go 1.18, go get will no longer build packages; it will only be used to add, update, or remove dependencies in go.mod. Specifically, go get will always act as if the -d flag were enabled.

More information: https://go.dev/doc/go-get-install-deprecation

Signed-off-by: Camille Louédoc-Eyriès <[email protected]>
Comment on lines +14 to +15
$ go install github.com/monitoring-mixins/mixtool/cmd/mixtool
$ go install github.com/google/go-jsonnet/cmd/jsonnetfmt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to specify a version.

Suggested change
$ go install github.com/monitoring-mixins/mixtool/cmd/mixtool
$ go install github.com/google/go-jsonnet/cmd/jsonnetfmt
$ go install github.com/monitoring-mixins/mixtool/cmd/mixtool@latest
$ go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants